import { ApiProperty } from '@nestjs/swagger';

export class CreateUserDTO {
  @ApiProperty({
    description: '用户id',
  })
  readonly _id: string;
  @ApiProperty({
    description: '用户名',
  })
  readonly user_name: string;
  @ApiProperty({
    description: '用户密码',
  })
  readonly password: string;
}

export class EditUserDTO {
  @ApiProperty({
    description: '用户名',
  })
  readonly user_name: string;
  @ApiProperty({
    description: '用户密码',
  })
  readonly password: string;
}

export class SelectUserDto {
  @ApiProperty({
    description: '页码',
  })
  readonly pageNum: number;
  @ApiProperty({
    description: '条数',
  })
  readonly pageSize: number;
}
